package stage.pojo;

import javax.persistence.*;
/**
 * pojo of historical info.
 * @author remi liu(Liu Zhibin)
 * @version 0.0
 */
@Entity
@Table(name="INFOS")
public class HistoricalInfo {
	private Long id;
	private Character hospital;
	private Character department;
	private Boolean isExpert;
	private Long weekOrdinal;
	private Integer weekday;
	private Integer weather;
	private Long patientNum;
	
	public HistoricalInfo(){}
	public HistoricalInfo(Character h,Character d,Boolean i,Long wo,Integer wd,Integer w,Long p){
		this.hospital=h;
		this.department=d;
		this.isExpert=i;
		this.weekOrdinal=wo;
		this.weekday=wd;
		this.weather=w;
		this.patientNum=p;
	}
	@Id
	@Column(name = "ID", nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId(){
		return this.id;
	}
	private void setId(Long id){
		this.id=id;
	}
	public Character getHospital(){
		return this.hospital;
	}
	public void setHospital(Character hospital){
		this.hospital=hospital;
	}
	public Character getDepartment(){
		return this.department;
	}
	public void setDepartment(Character department){
		this.department=department;
	}
	public Boolean getIsExpert(){
		return this.isExpert;
	}
	public void setIsExpert(Boolean isExpert){
		this.isExpert=isExpert;
	}
	public Long getWeekOrdinal(){
		return this.weekOrdinal;
	}
	public void setWeekOrdinal(Long weekOrdinal){
		this.weekOrdinal=weekOrdinal;
	}
	public Integer getWeekday(){
		return this.weekday;
	}
	public void setWeekday(Integer weekday){
		this.weekday=weekday;
	}
	public Integer getWeather(){
		return this.weather;
	}
	public void setWeather(Integer weather){
		this.weather=weather;
	}
	public Long getPatientNum(){
		return this.patientNum;
	}
	public void setPatientNum(Long patientNum){
		this.patientNum=patientNum;
	}
	@Override
	public String toString(){
		return ("\nid:"+id
				+"\nhospital:"+hospital
				+"\ndepartment:"+department
				+"\nisExpert:"+isExpert.toString()
				+"\nweekOrdinal:"+weekOrdinal.toString()
				+"\nweekday:"+weekday.toString()
				+"\npatientNum:"+patientNum.toString()
				+"\nweather:"+weather.toString());
	}
}
